<?php
//
// +------------------------------------------------------------------------+
// | Gecko Framework                                                        |
// +------------------------------------------------------------------------+
//

/**
 * Interface for Form Builder
 *
 * @package Gecko.Form.Builder;
 * @author Christopher Valderrama <valderrama.christopher@gmail.com>
 * @copyright Copyright (c) 2008
 * @version $Id$v1.0$ 2008
 * @access public
 **/
interface Gecko_Form_Builder_Interface {
	/**
	 * Returns the field Schema (for creating forms)
	 *
	 * The array must be a matrix where each array item contains
	 * the following elements:
	 * - type: The field type
	 * - name: The field name
	 * - value: The field default value (optional)
	 * - settings: The array of settings (optional)
	 *
	 * @access public
	 * @return array
	 */
	public function getFieldSchema();
	/**
	 * Returns the Form settings for the form
	 *
	 * The following elements must be returned:
	 * - name: The form name (optional)
	 * - destination: The form destination (optional)
	 * - method: The form method (optional)
	 *
	 * @access public
	 * @return array
	 */
	public function getFormSettings();
}
?>